/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.xuexiang.xui_lib.component.dialog.config;

import ohos.agp.animation.AnimatorProperty;
import ohos.agp.window.dialog.CommonDialog;
import ohos.app.Context;

import com.xuexiang.xui_lib.component.dialog.building.DialogBuilder;
import com.xuexiang.xui_lib.component.dialog.interfaces.CheckBoxItemDialogListener;
import com.xuexiang.xui_lib.component.dialog.interfaces.DialogListener;
import com.xuexiang.xui_lib.component.dialog.interfaces.ItemDialogListener;
import com.xuexiang.xui_lib.component.dialog.interfaces.Styleable;

import java.util.ArrayList;
import java.util.List;

/**
 * description configbean
 *
 * @author liuluming
 * @since 2021-04-08
 */
public class ConfigBean extends DialogBuilder implements Styleable {
    /**
     * type
     */
    public int type;
    /**
     * context
     */
    public Context context;
    /**
     * msg
     */
    public CharSequence msg;
    /**
     * title
     */
    public CharSequence title;
    /**
     * submit
     */
    public String submit;
    /**
     * cancel
     */
    public String cancel;
    /**
     * listener
     */
    public DialogListener listener;
    /**
     * itemListener
     */
    public ItemDialogListener itemListener;

    /**
     * dialog 的x坐标
     */
    public int x;
    /**
     * dialog 的y坐标
     */
    public int y;

    public int menuWidth;
    public int menuHeight;

    public String getSelectItem() {
        return selectItem;
    }

    public void setSelectItem(String selectItem) {
        this.selectItem = selectItem;
    }

    public String selectItem;
    /**
     * checkBoxItemDialogListener
     */
    public CheckBoxItemDialogListener checkBoxItemDialogListener;
    /**
     * words
     */
    public CharSequence[] words;
    /**
     * hint1
     */
    public CharSequence hint1;
    /**
     * hint2
     */
    public CharSequence hint2;


    /**
     * getInputText1
     *
     * @return inputText1
     */
    public CharSequence getInputText1() {
        return inputText1;
    }

    /**
     * setInputText1
     *
     * @param inputText1 inputText1
     */
    public void setInputText1(CharSequence inputText1) {
        this.inputText1 = inputText1;
    }

    /**
     * inputText1
     */
    public CharSequence inputText1;

    public CharSequence getInputText2() {
        return inputText2;
    }

    public void setInputText2(CharSequence inputText2) {
        this.inputText2 = inputText2;
    }

    /**
     * inputText2
     */
    public CharSequence inputText2;
    /**
     * defaultChosen
     */
    public int defaultChosen;//
    /**
     * chooseBeans
     */
    public List<ChooseBean> chooseBeans = new ArrayList<>();
    /**
     * checkedItems
     */
    public boolean[] checkedItems;

    public CommonDialog commonDialog;

    public AnimatorProperty property;

    public ConfigBean() {

    }

    @Override
    public CommonDialog show() {
        return null;
    }
}
